package model;

import lombok.Data;

/**
 *  返回给前端的封装对象
 */
@Data
public class ResultData {
    private int state; // 返回的状态码
    private Object data; // 返回的数据
    private String msg; // 错误原因描述

    public ResultData() {
    }

    public ResultData(int state, Object data, String msg) {
        this.state = state;
        this.data = data;
        this.msg = msg;
    }
}
